<?php
class RadioButton extends GroupedFormElement {
	
	public function __construct($elementId, $labelText) {
		
		parent::__construct($elementId, $labelText);
	}
	
	protected function createElement($elementId, $text) {
		
		$element = new RadioButtonElement($elementId, $text);
		$element->setGroupName($this->elementId);
		
		return $element;
	}
}